forum

home / developersection / forums / how to set id to html.textbox item on mvc

how to set id to Html.TextBox item on MVC

Anonymous User 7913 28-Sep-2013

Im trying to catch the textbox element by javascript, in order to put text into it. so how to set id to the textbox ??

    <tr>

                    // Id to this textbox
            <td>@Html.TextBoxFor(item => item.OperationNo)</td>
        </tr>

    

and then to put text into it by JS

   document.getElementById("Textbox id").Text= " Some text " ;          

Updated on 28-Sep-2013

I am a content writter !


Message
Can you answer this question?

Answer

1 Answers

Liked By